<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
	xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
	xmlns:xs="http://www.w3.org/2001/XMLSchema"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	exclude-result-prefixes="xs xsi">
	
	<xsl:template match="DocumentBody/Goals">
		<div class="boxed-section" id="{local-name()}">
      <h2>Goal / Outcome</h2>
      <div class="inline-content">
        <xsl:choose>
          <xsl:when test="count(./*) &gt; 0">
            <ul>
              <xsl:for-each select="Goal">
                <li>
                  <xsl:value-of select="."/>
                </li>
              </xsl:for-each>
            </ul>
          </xsl:when>
          <xsl:otherwise>None recorded</xsl:otherwise>
        </xsl:choose>
      </div>
    </div>
	</xsl:template>
		
</xsl:stylesheet>
